﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true"
    CodeFile="frmJ_TraineeResumeOutput.aspx.cs" Inherits="JOINT_frmJ_TraineeResumeOutput"
    Title="履歴書出力" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
履歴書出力
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />
    <link href="../Style/datepicker.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #showCalendar
        {
        	padding-top: 35px;
            position: absolute;
            z-index: 1000;
        }
        #background
        {
            display: none;
            position: absolute;
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            background: #000000;
            z-index: 1;
        }
    </style>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../js/datepicker.js" type="text/javascript"></script>
    <script src="../js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../js/Validation.js" type="text/javascript"></script>

    <script type='text/javascript' language='javascript'>

        $(document).ready(function() {

            startup();

        });
        function startup() {
            disableControlOnLoadUpdatePanel("<%= UpdatePanel1.ClientID %>", "<%= ddl_組合選択.ClientID %>");
            registerControlToValidation("validation");
            registerEnterEvent("next_control", "<%= btn_検索.ClientID %>", 3);
            formatDate("css_text_calender", "/");
            $("#ctl00_ContentPlaceHolder1_ddl_textbox2").bind("keydown", function(e) {
                var key = e.which;
                if (key == 13 && !e.shiftKey) {
                    $("#ctl00_ContentPlaceHolder1_ddl_組合選択").focus();
                }
            });
            //if ($("#<%= HiddenField2.ClientID %>").val() != "") {
                var A = $("#<%= HiddenField2.ClientID %>").val().split(',');
                $('#showCalendar').html('');
                $('#showCalendar').DatePicker({
                    calendar_content: 'calendar_content',
                    control: 'ctl00_ContentPlaceHolder1_ddl_textbox2',
                    flat: true,
                    date: A,
                    current: Date.Now,
                    format: 'Y-m-d',
                    calendars: 1,
                    mode: 'multiple',
                    starts: 1
                });
                $('#showCalendar').hide();
                //                }
                //            });
                $('#buttonCal').click(function() {
                    $("#background").css({ "opacity": "0" }).fadeIn("fast");
                    $("#showCalendar").show();
                });
                $('#background').click(function() {
                    $('#background').fadeOut('fast');
                    $('#showCalendar').hide();
                });
            //}
        }				

    </script>

    <div class="maindiv1">
        <div class="div_content" style="height: 110px">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <br />
                    <div class="detail-admin-row">
                        <div class="detail-admin-row1">
                            <span class="detail-admin-label">組合選択 :</span>
                            <asp:DropDownList ID="ddl_組合選択" runat="server" ValidationGroup="detailForm" AutoPostBack="true"
                                CssClass="validation next_control dropdownlist width2" Style="float: left;"
                                OnSelectedIndexChanged="ddl_組合選択_SelectedIndexChanged">
                                <asp:ListItem Value="-1">[選択]</asp:ListItem>
                            </asp:DropDownList>
                            <span class="required-field">*</span>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="ddl_組合選択"
                                InitialValue="-1" Display="None" ErrorMessage="">
                            </asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
                                TargetControlID="RequiredFieldValidator1" HighlightCssClass="invalid" Width="240px"
                                CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                        </div>
                        <div class="detail-admin-row2">
                            <span class="detail-admin-label">組合員企業選択 :</span><asp:DropDownList ID="ddl_組合員企業選択"
                                runat="server" CssClass=" validation next_control dropdownlist width2"
                                Style="float: left;"  AutoPostBack="true" 
                                onselectedindexchanged="ddl_組合員企業選択_SelectedIndexChanged">
                                <asp:ListItem Value="-1">[選択]</asp:ListItem>
                            </asp:DropDownList>
                            <span class="required-field">*</span>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="ddl_組合員企業選択"
                                InitialValue="-1" Display="None" ErrorMessage="">
                            </asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
                                TargetControlID="RequiredFieldValidator2" HighlightCssClass="invalid" Width="240px"
                                CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                        </div>
                    </div>
                    <asp:HiddenField ID="HiddenField2" runat="server" />
                    <div class="detail-admin-row">
                        <div class="detail-admin-row1">
                            <br />
                            <span class="detail-admin-label">面接日 :</span>
                            <asp:DropDownList ID="ddl_textbox2" runat="server"  CssClass=" validation next_control dropdownlist width2"
                                Style="float: left;" AutoPostBack="True" 
                                onselectedindexchanged="ddl_textbox2_SelectedIndexChanged">
                                <asp:ListItem Value="-1">[選択]</asp:ListItem>
                            </asp:DropDownList>
                            
                            &nbsp;<input type="button" id="buttonCal" value="" class="calendar"/>
                            <span class="required-field">*</span>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="ddl_textbox2"
                                Display="None" InitialValue="-1" ErrorMessage="">
                            </asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
                                TargetControlID="RequiredFieldValidator3" HighlightCssClass="invalid" Width="240px"
                                CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                        </div>
                        <div id="showCalendar" class="calendar_content">
                            </div>
                        <div class="detail-admin-row2">
                        </div>
                    </div>
                    <div class="div_height20">
                    </div>
                    <div class="btn_next" style="display:none";>
                        <asp:Button Text="検索" runat="server" ID="btn_検索" OnClick="btn_検索_Click" CssClass="btn"
                            OnClientClick="javascript:focusToControlErr();" />
                        <br />
                    </div>
                    <div class="div_height20">
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div class="Header4">
        </div>
        <div class="div_grv" style="width: 772px">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="grv" runat="server" Width="100%" ShowFooter="false" AutoGenerateColumns="False"
                        CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
                        AllowPaging="true" PageSize="10" OnPageIndexChanging="grv_PageIndexChanging">
                        <Columns>
                            <asp:TemplateField HeaderText="面接番号">
                            <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                               
                                    <%#Eval("面接番号")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="氏名">
                                <ItemTemplate>
                                    <%#Eval("姓") %><%#" " %><%#Eval("名")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="性別">
                                <ItemTemplate>
                                    <%#Eval("Gioitinh")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="性年月日" DataField="生年月日" DataFormatString="{0:yyyy年MM月dd日}">
                                <ItemStyle HorizontalAlign="Center" Width="133px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="	現住所">
                                <ItemTemplate>
                                    <%#Eval("出身地")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings FirstPageText="最初" Mode="NumericFirstLast" PageButtonCount="5" LastPageText="最後" />
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div id="background"></div>
        <div class="div_height20">
        </div>
        <div class="btn_next floatR" style="padding-right: 50px">
            <asp:Button ID="btnPDF出力" runat="server" Text="PDF出力" OnClick="btnPDF出力_Click" />
        </div>
        <div class="div_height20">
        </div>
    </div>
    <div>
        &nbsp;</div>
    <br />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <Triggers>
            <%-- <asp:AsyncPostBackTrigger  ControlID="btnPDF出力"  EventName="click" />--%>
            <asp:PostBackTrigger ControlID="btnPDF出力" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
